package com.zsc.newbuds.service;

import com.zsc.newbuds.entity.Recycle;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author D
 */
public interface RecycleService {

    /**
     * 获取所有捐赠记录
     * @return
     */
    List<Recycle> getRecycleList();

    /**
     * 更新捐赠状态
     * @param id
     * @param state
     */
    public void updateState(Integer id, String state);

    /**
     * 获取出售的重量
     * @param recycleId
     * @return
     */
    float getWeight(Integer[] recycleId);
}
